/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.entities;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Min Tun
 */
@XmlRootElement(name="comments")
@XmlAccessorType(XmlAccessType.FIELD)
public class Comments {

    @XmlElement(required=true)
    private List<CommentType> comments;

    public Comments() {
    }

    public List<CommentType> getComments() {
        if(comments == null){
            comments = new ArrayList<CommentType>();
        }
        return this.comments;
    }

}
